package com.capital.entity;

/**
 *
 * @author qiwy
 *
 */
public class CfnInfo {

	private String datetime;

	private String eitime;

	private String code;

	private String content;

	private String title;

	private String infoCode;

	private String medianname;

	private String url;

	private String date;

	public CfnInfo(String datetime, String eitime, String code, String content, String title, String infoCode, String medianname, String url, String date) {
		this.datetime = datetime;
		this.eitime = eitime;
		this.code = code;
		this.content = content;
		this.title = title;
		this.infoCode = infoCode;
		this.medianname = medianname;
		this.url = url;
		this.date = date;
	}

	public CfnInfo(Object[] objs) {
		this.datetime = objs[0].toString();
		this.eitime = objs[1].toString();
		this.code = objs[2].toString();
		this.content = objs[3].toString();
		this.title = objs[4].toString();
		this.infoCode = objs[5].toString();
		this.medianname = objs[6].toString();
		this.url = objs[7].toString();
		this.date = this.datetime.substring(0, 10);
	}

	public CfnInfo() {
		super();
	}

	public String getDatetime() {
		return datetime;
	}

	public void setDatetime(String datetime) {
		this.datetime = datetime;
	}

	public String getEitime() {
		return eitime;
	}

	public void setEitime(String eitime) {
		this.eitime = eitime;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getInfoCode() {
		return infoCode;
	}

	public void setInfoCode(String infoCode) {
		this.infoCode = infoCode;
	}

	public String getMedianname() {
		return medianname;
	}

	public void setMedianname(String medianname) {
		this.medianname = medianname;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	@Override
	public String toString() {
		return "CfnInfo [" +
				"datetime = " + datetime + ", eitime = " + eitime +
				", code = " + code + ", content = "	+ content +
				", title = " + title + ", infoCode = " + infoCode +
				", medianname = " + medianname + ", url = " + url +
				", date = " + date +"]";
	}
	
}
